package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.List;

public class VipExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public VipExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLvIdIsNull() {
            addCriterion("lv_id is null");
            return (Criteria) this;
        }

        public Criteria andLvIdIsNotNull() {
            addCriterion("lv_id is not null");
            return (Criteria) this;
        }

        public Criteria andLvIdEqualTo(Integer value) {
            addCriterion("lv_id =", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdNotEqualTo(Integer value) {
            addCriterion("lv_id <>", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdGreaterThan(Integer value) {
            addCriterion("lv_id >", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("lv_id >=", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdLessThan(Integer value) {
            addCriterion("lv_id <", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdLessThanOrEqualTo(Integer value) {
            addCriterion("lv_id <=", value, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdIn(List<Integer> values) {
            addCriterion("lv_id in", values, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdNotIn(List<Integer> values) {
            addCriterion("lv_id not in", values, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdBetween(Integer value1, Integer value2) {
            addCriterion("lv_id between", value1, value2, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvIdNotBetween(Integer value1, Integer value2) {
            addCriterion("lv_id not between", value1, value2, "lvId");
            return (Criteria) this;
        }

        public Criteria andLvNameIsNull() {
            addCriterion("lv_name is null");
            return (Criteria) this;
        }

        public Criteria andLvNameIsNotNull() {
            addCriterion("lv_name is not null");
            return (Criteria) this;
        }

        public Criteria andLvNameEqualTo(String value) {
            addCriterion("lv_name =", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameNotEqualTo(String value) {
            addCriterion("lv_name <>", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameGreaterThan(String value) {
            addCriterion("lv_name >", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameGreaterThanOrEqualTo(String value) {
            addCriterion("lv_name >=", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameLessThan(String value) {
            addCriterion("lv_name <", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameLessThanOrEqualTo(String value) {
            addCriterion("lv_name <=", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameLike(String value) {
            addCriterion("lv_name like", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameNotLike(String value) {
            addCriterion("lv_name not like", value, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameIn(List<String> values) {
            addCriterion("lv_name in", values, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameNotIn(List<String> values) {
            addCriterion("lv_name not in", values, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameBetween(String value1, String value2) {
            addCriterion("lv_name between", value1, value2, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvNameNotBetween(String value1, String value2) {
            addCriterion("lv_name not between", value1, value2, "lvName");
            return (Criteria) this;
        }

        public Criteria andLvPointsIsNull() {
            addCriterion("lv_points is null");
            return (Criteria) this;
        }

        public Criteria andLvPointsIsNotNull() {
            addCriterion("lv_points is not null");
            return (Criteria) this;
        }

        public Criteria andLvPointsEqualTo(Integer value) {
            addCriterion("lv_points =", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsNotEqualTo(Integer value) {
            addCriterion("lv_points <>", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsGreaterThan(Integer value) {
            addCriterion("lv_points >", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsGreaterThanOrEqualTo(Integer value) {
            addCriterion("lv_points >=", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsLessThan(Integer value) {
            addCriterion("lv_points <", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsLessThanOrEqualTo(Integer value) {
            addCriterion("lv_points <=", value, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsIn(List<Integer> values) {
            addCriterion("lv_points in", values, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsNotIn(List<Integer> values) {
            addCriterion("lv_points not in", values, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsBetween(Integer value1, Integer value2) {
            addCriterion("lv_points between", value1, value2, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvPointsNotBetween(Integer value1, Integer value2) {
            addCriterion("lv_points not between", value1, value2, "lvPoints");
            return (Criteria) this;
        }

        public Criteria andLvImgIsNull() {
            addCriterion("lv_img is null");
            return (Criteria) this;
        }

        public Criteria andLvImgIsNotNull() {
            addCriterion("lv_img is not null");
            return (Criteria) this;
        }

        public Criteria andLvImgEqualTo(String value) {
            addCriterion("lv_img =", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgNotEqualTo(String value) {
            addCriterion("lv_img <>", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgGreaterThan(String value) {
            addCriterion("lv_img >", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgGreaterThanOrEqualTo(String value) {
            addCriterion("lv_img >=", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgLessThan(String value) {
            addCriterion("lv_img <", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgLessThanOrEqualTo(String value) {
            addCriterion("lv_img <=", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgLike(String value) {
            addCriterion("lv_img like", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgNotLike(String value) {
            addCriterion("lv_img not like", value, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgIn(List<String> values) {
            addCriterion("lv_img in", values, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgNotIn(List<String> values) {
            addCriterion("lv_img not in", values, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgBetween(String value1, String value2) {
            addCriterion("lv_img between", value1, value2, "lvImg");
            return (Criteria) this;
        }

        public Criteria andLvImgNotBetween(String value1, String value2) {
            addCriterion("lv_img not between", value1, value2, "lvImg");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNull() {
            addCriterion("discount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNotNull() {
            addCriterion("discount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEqualTo(Double value) {
            addCriterion("discount =", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotEqualTo(Double value) {
            addCriterion("discount <>", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThan(Double value) {
            addCriterion("discount >", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThanOrEqualTo(Double value) {
            addCriterion("discount >=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThan(Double value) {
            addCriterion("discount <", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThanOrEqualTo(Double value) {
            addCriterion("discount <=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountIn(List<Double> values) {
            addCriterion("discount in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotIn(List<Double> values) {
            addCriterion("discount not in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountBetween(Double value1, Double value2) {
            addCriterion("discount between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotBetween(Double value1, Double value2) {
            addCriterion("discount not between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("`level` is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("`level` is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("`level` =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("`level` <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("`level` >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("`level` >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("`level` <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("`level` <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("`level` in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("`level` not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("`level` between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("`level` not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andVipDescIsNull() {
            addCriterion("vip_desc is null");
            return (Criteria) this;
        }

        public Criteria andVipDescIsNotNull() {
            addCriterion("vip_desc is not null");
            return (Criteria) this;
        }

        public Criteria andVipDescEqualTo(String value) {
            addCriterion("vip_desc =", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescNotEqualTo(String value) {
            addCriterion("vip_desc <>", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescGreaterThan(String value) {
            addCriterion("vip_desc >", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescGreaterThanOrEqualTo(String value) {
            addCriterion("vip_desc >=", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescLessThan(String value) {
            addCriterion("vip_desc <", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescLessThanOrEqualTo(String value) {
            addCriterion("vip_desc <=", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescLike(String value) {
            addCriterion("vip_desc like", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescNotLike(String value) {
            addCriterion("vip_desc not like", value, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescIn(List<String> values) {
            addCriterion("vip_desc in", values, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescNotIn(List<String> values) {
            addCriterion("vip_desc not in", values, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescBetween(String value1, String value2) {
            addCriterion("vip_desc between", value1, value2, "vipDesc");
            return (Criteria) this;
        }

        public Criteria andVipDescNotBetween(String value1, String value2) {
            addCriterion("vip_desc not between", value1, value2, "vipDesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}